﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Dvd1012m.aspx.cs" Inherits="Updms.Dvd.Dvd1012m" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Dvd1012m] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Dvd1012m" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<Triggers>
				<asp:PostBackTrigger ControlID="ibtn_excel"/>
				<asp:PostBackTrigger ControlID="ibtn_save"/>
			</Triggers>
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_excel" Text="엑셀" runat="server" CssClass="ibtn ibtn_excel" OnClick="ibtn_excel_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_favorite" Text="즐겨찾기" runat="server" CssClass="ibtn ibtn_favorite"></asp:linkbutton>
				<asp:linkbutton id="ibtn_delete" Text="삭제" runat="server" CssClass="ibtn ibtn_delete" OnClientClick="return chkDelete()" OnClick="ibtn_delete_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_save" Text="저장" runat="server" CssClass="ibtn ibtn_save" OnClientClick="return chkSave()" OnClick="ibtn_save_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="10%"><asp:Literal id="ltr_search_studio" Text="스튜디오" runat="server" /></td>
					<td class="ctl" width="15%"><img src="../Common/Images/application_form.png" align="absmiddle" alt="multi_check" class="hand" onclick="showHiddenDiv('div_search_studio', event);" /></td>
					<td class="lbl" width="10%"><asp:Literal id="ltr_search_title" Text="제목" runat="server" /></td>
					<td class="ctl" width="15%"><asp:textbox id="txt_search_title" runat="server" Width="97%" CssClass="ib_b"></asp:textbox></td>
					<td class="lbl" width="10%"><asp:Literal id="ltr_search_actress1" Text="주연" runat="server" /></td>
					<td class="ctl" width="15%"><asp:textbox id="txt_search_actress1" runat="server" Width="97%" CssClass="ib_b"></asp:textbox></td>
					<td class="lbl" width="10%"><asp:Literal id="ltr_search_rate" Text="평점" runat="server" /></td>
					<td class="ctl" width="15%"><asp:textbox id="txt_search_rate" runat="server" Width="97%" CssClass="ib_b" Text="0"></asp:textbox></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_search_contents" Text="내용" runat="server" /></td>
					<td class="ctl"><img src="../Common/Images/application_form.png" align="absmiddle" alt="multi_check" class="hand" onclick="showHiddenDiv('div_search_contents', event);" /></td>
					<td class="lbl"><asp:Literal id="ltr_search_look" Text="외모" runat="server" /></td>
					<td class="ctl"><img src="../Common/Images/application_form.png" align="absmiddle" alt="multi_check" class="hand" onclick="showHiddenDiv('div_search_look', event);" /></td>
					<td class="lbl"><asp:Literal id="ltr_search_costume" Text="복장" runat="server" /></td>
					<td class="ctl"><img src="../Common/Images/application_form.png" align="absmiddle" alt="multi_check" class="hand" onclick="showHiddenDiv('div_search_costume', event);" /></td>
					<td class="lbl"><asp:Literal id="ltr_search_character" Text="캐릭터" runat="server" /></td>
					<td class="ctl"><img src="../Common/Images/application_form.png" align="absmiddle" alt="multi_check" class="hand" onclick="showHiddenDiv('div_search_character', event);" /></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<table class="table_detail">
				<tr>
					<td class="lbl" width="11%"><asp:Literal id="ltr_div" Text="구분" runat="server" /></td>
					<td class="ctl" width="22%"><asp:dropdownlist id="ddl_div" runat="server" CssClass="ddl" OnSelectedIndexChanged="ddl_div_SelectedIndexChanged" AutoPostBack="True"></asp:dropdownlist></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_dvd_no" Text="DVD 번호" runat="server" /></td>
					<td class="ctl" width="22%"><asp:textbox id="txt_dvd_no" runat="server" Width="98%" CssClass="ib_b req"></asp:textbox></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_studio" Text="스튜디오" runat="server" /></td>
					<td class="ctl" width="22%"><asp:dropdownlist id="ddl_studio" runat="server" CssClass="ddl"></asp:dropdownlist></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_title" Text="제목" runat="server" /></td>
					<td class="ctl" colspan="3"><asp:textbox id="txt_title" runat="server" Width="99.2%" CssClass="ib_b req"></asp:textbox></td>
					<td class="lbl" rowspan="3"><asp:Literal id="ltr_synopsis" Text="시놉시스" runat="server" /></td>
					<td class="ctl" rowspan="3"><asp:textbox id="txt_synopsis" runat="server" Width="96%" TextMode="MultiLine" Rows="4" Height="60px" CssClass="tb_scroll"></asp:textbox></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_actress1" Text="주연" runat="server" />1</td>
					<td class="ctl"><asp:textbox id="txt_actress1" runat="server" Width="98%" CssClass="ib_b"></asp:textbox></td>
					<td class="lbl"><asp:Literal id="ltr_actress2" Text="주연" runat="server" />2</td>
					<td class="ctl"><asp:textbox id="txt_actress2" runat="server" Width="98%" CssClass="ib_b"></asp:textbox></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_release_dt" Text="릴리즈날짜" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_release_dt" runat="server" CssClass="ib_b_dt"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_release_dt" class="ci_calendar" runat="server" /></td>
					<td class="lbl"><asp:Literal id="ltr_rate" Text="평점" runat="server" /></td>
					<td class="ctl">
						<ul class="horizontal">
							<li><asp:textbox id="txt_rate" runat="server" Width="30" CssClass="ib_read_only"></asp:textbox></li>
							<li style="width:4px;height:23px">&nbsp;</li>
							<li><asp:textbox id="txt_rate_slider" runat="server"></asp:textbox></li>
						</ul>
					</td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_running_time" Text="런닝타임(분)" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_running_time" runat="server" Width="98%" CssClass="ib_b_R"></asp:textbox></td>
					<td class="lbl"><asp:Literal id="ltr_file_size" Text="파일크기(kb)" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_file_size" runat="server" Width="98%" CssClass="ib_b_R"></asp:textbox></td>
					<td class="lbl"><asp:Literal id="ltr_attach_file1" Text="스크린샷" runat="server" /></td>
					<td class="ctl">
						<ul class="horizontal">
							<li><input class="ib_file" id="file_attach_file1" type="file" name="file_attach_file1" runat="server" /></li>
							<li style="padding:2px 0 0 2px;"><asp:LinkButton id="ibtn_delete_attach_file1" runat="server" CssClass="sbtn sbtn_file_del" Visible="False" ToolTip="첨부파일 삭제" OnClick="ibtn_delete_attach_file1_Click" OnClientClick="return chkDeleteAttachFile1()"></asp:LinkButton></li>
						</ul>
					</td>
				</tr>
			</table>
			<!-- 디테일1 끝 -->
			<!-- 디테일2 시작 -->
			<!-- 토글 시작 -->
			<span onclick="toggleObj('div_detail_2');">
				<span id="span_hide_show" onclick="toggleStr(this, 'detailHide', 'detailShow');" title="Show" style="cursor:pointer;">
					<span id="detailHide" style="display:block; padding:0 0 2px 0;" class="icon sbtn_arrow_out"></span>
					<span id="detailShow" style="display:none; padding:0 0 2px 0;" class="icon sbtn_arrow_in"></span>
				</span>
			</span>
			<!-- 토글 끝 -->
			<div id="div_detail_2" style="display:none;">
			<table id="table_detail_2" class="table_detail">
				<tr>
					<td class="lbl_c" width="35%"><asp:Literal id="ltr_d2_contents" Text="내용" runat="server" /></td>
					<td class="lbl_c" width="22%"><asp:Literal id="ltr_d2_look" Text="외모" runat="server" /></td>
					<td class="lbl_c" width="23%"><asp:Literal id="ltr_d2_dress" Text="복장" runat="server" /></td>
					<td class="lbl_c" width="20%"><asp:Literal id="ltr_d2_character" Text="캐릭터" runat="server" /></td>
				</tr>
				<tr>
					<td class="ctl"><div class="div_scroll_dvd"><asp:checkboxlist id="cbl_contents" runat="server" CssClass="cbl_flow" RepeatColumns="3"></asp:checkboxlist></div></td>
					<td class="ctl"><div class="div_scroll_dvd"><asp:checkboxlist id="cbl_look" runat="server" CssClass="cbl_flow" RepeatColumns="2"></asp:checkboxlist></div></td>
					<td class="ctl"><div class="div_scroll_dvd"><asp:checkboxlist id="cbl_costume" runat="server" CssClass="cbl_flow" RepeatColumns="2"></asp:checkboxlist></div></td>
					<td class="ctl"><div class="div_scroll_dvd"><asp:checkboxlist id="cbl_character" runat="server" CssClass="cbl_flow" RepeatColumns="2"></asp:checkboxlist></div></td>
				</tr>
			</table>
			</div>
			<!-- 디테일2 끝 -->
			<!-- 리스트셋 시작 -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td>
						<!-- 검색어 시작 -->
						<div class="div_left">Keyword : <asp:label id="lbl_search_keyword" runat="server"></asp:label></div>
						<div class="div_right"><asp:checkbox id="cb_list_all" runat="server" AutoPostBack="True" OnCheckedChanged="cb_list_all_CheckedChanged" ToolTip="Show All"></asp:checkbox></div>
						<!-- 검색어 끝 -->
					</td>
				</tr>
				<tr>
					<td>
						<!-- 리스트 시작 -->
						<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand" DataKeyNames="Seq,Studio,Actress1,Actress2,Rate,Release_Dt,Synopsis,Attach_File1,Screenshot_Width,Screenshot_Height">
							<Columns>
								<asp:TemplateField HeaderText="&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;checkBoxCheck('GridView1');&quot;&gt;S&lt;/a&gt;">
									<ItemTemplate>
										<input id="cb_check" class="cb" type="checkbox" onclick="reverseRow('GridView1', 0);" runat="server" />
									</ItemTemplate>
									<ItemStyle HorizontalAlign="Center" Width="2%" />
								</asp:TemplateField>
								<asp:BoundField HeaderText="번호" >
									<ItemStyle HorizontalAlign="Center" Width="4%" />
								</asp:BoundField>
								<asp:BoundField DataField="Seq" HeaderText="Seq(X)" Visible="False" />
								<asp:BoundField DataField="Div" HeaderText="구분" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="3%" />
								</asp:BoundField>
								<asp:BoundField DataField="Dvd_No" HeaderText="DVD 번호" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="5%" />
								</asp:BoundField>
								<asp:BoundField DataField="Studio" HeaderText="Studio(X)" Visible="False" />
								<asp:BoundField DataField="Studio_Nm" HeaderText="스튜디오" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="10%" />
								</asp:BoundField>
								<asp:TemplateField HeaderText="제목">
									<ItemTemplate>
										<asp:LinkButton ID="lbtn_rc" runat="server" Text='<%# Bind("Title") %>'></asp:LinkButton>
									</ItemTemplate>
									<HeaderStyle CssClass="lbtn_rc" />
									<ItemStyle HorizontalAlign="Left" Width="44%" />
								</asp:TemplateField>
								<asp:BoundField DataField="Release_Dt" HeaderText="Release_Dt(X)" Visible="False" />
								<asp:BoundField DataField="Actress1" HeaderText="Actress1(X)" Visible="False" />
								<asp:BoundField HeaderText="주연" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="12%" />
									<HeaderStyle Font-Underline="True" />
								</asp:BoundField>
								<asp:BoundField DataField="Actress2" HeaderText="Actress2(X)" Visible="False" />
								<asp:BoundField DataField="Rate" HeaderText="Rate(X)" Visible="False" />
								<asp:BoundField HeaderText="평점" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="4%" />
									<HeaderStyle Font-Underline="True" />
								</asp:BoundField>
								<asp:BoundField DataField="Running_Time" HeaderText="시간" DataFormatString="{0:#,##0}" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Right" Width="4%" />
								</asp:BoundField>
								<asp:BoundField DataField="File_Size" HeaderText="크기(KB)" DataFormatString="{0:#,##0}" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Right" Width="5%" />
								</asp:BoundField>
								<asp:BoundField DataField="Synopsis" HeaderText="Synopsis(X)" Visible="False" />
								<asp:BoundField DataField="Attach_File1" HeaderText="Attach_File1(X)" Visible="False" />
								<asp:BoundField DataField="Attach_File1_Link" HeaderText="스크린샷" HtmlEncode="False" >
									<HeaderStyle Font-Underline="True" />
									<ItemStyle HorizontalAlign="Center" Width="3%" />
								</asp:BoundField>
								<asp:BoundField DataField="Screenshot_Width" HeaderText="Screenshot_Width(X)" Visible="False" />
								<asp:BoundField DataField="Screenshot_Height" HeaderText="Screenshot_Height(X)" Visible="False" />
							</Columns>
							<EmptyDataTemplate>
								<div id="no_data"></div>
							</EmptyDataTemplate>
						</asp:GridView>
						<!-- 리스트 끝 -->
					</td>
				</tr>
				<tr>
					<td>
						<!-- 페이징 시작 -->
						<div class="div_left">Result : <asp:label id="lbl_result_count" runat="server"></asp:label></div>
						<div class="div_right"><asp:label id="lbl_page" runat="server"></asp:label></div>
						<!-- 페이징 끝 -->
					</td>
				</tr>
			</table>
			<!-- 리스트셋 끝 -->
			<div id="div_search_studio" class="div_scroll div_multi_box" style="display:none;height:200px;width:180px;position:absolute;overflow-y:auto;">
				<asp:CheckBoxList id="cbl_search_studio" runat="server" RepeatDirection="Vertical" CssClass="cbl_vertical"></asp:CheckBoxList>
			</div>
			<div id="div_search_contents" class="div_scroll div_multi_box" style="display:none;height:200px;width:140px;position:absolute;overflow-y:auto;">
				<asp:CheckBoxList id="cbl_search_contents" runat="server" RepeatDirection="Vertical" CssClass="cbl_vertical"></asp:CheckBoxList>
			</div>
			<div id="div_search_look" class="div_scroll div_multi_box" style="display:none;height:200px;width:140px;position:absolute;overflow-y:auto;">
				<asp:CheckBoxList id="cbl_search_look" runat="server" RepeatDirection="Vertical" CssClass="cbl_vertical"></asp:CheckBoxList>
			</div>
			<div id="div_search_costume" class="div_scroll div_multi_box" style="display:none;height:200px;width:140px;position:absolute;overflow-y:auto;">
				<asp:CheckBoxList id="cbl_search_costume" runat="server" RepeatDirection="Vertical" CssClass="cbl_vertical"></asp:CheckBoxList>
			</div>
			<div id="div_search_character" class="div_scroll div_multi_box" style="display:none;height:140px;width:110px;position:absolute;overflow-y:auto;">
				<asp:CheckBoxList id="cbl_search_character" runat="server" RepeatDirection="Vertical" CssClass="cbl_vertical"></asp:CheckBoxList>
			</div>
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			<asp:label id="lbl_pk" runat="server"></asp:label>
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			<asp:Label id="lbl_attach_file1" runat="server"></asp:Label>
			<asp:Label id="lbl_screenshot_width" runat="server"></asp:Label>
			<asp:Label id="lbl_screenshot_height" runat="server"></asp:Label>
			<input id="h_no" type="hidden" name="h_no" runat="server" />
			</div>
			<!-- 히든값 끝 -->
			<!-- CalendarExtender 시작 -->
			<act:CalendarExtender ID="ce_release_dt"
				runat="server"
				TargetControlID="txt_release_dt"
				Format="yyyy-MM-dd"
				PopupButtonID="ci_release_dt"
				EnableViewState="False"
				BehaviorID="bi_release_dt"
				CssClass="calendar">
			</act:CalendarExtender>
			<!-- CalendarExtender 끝 -->
			<!-- FilteredTextBoxExtender 시작 -->
			<act:FilteredTextBoxExtender ID="fte_search_rate"
				runat="server"
				TargetControlID="txt_search_rate"
				FilterType="Custom, Numbers"
				ValidChars=".">
			</act:FilteredTextBoxExtender>
			<act:FilteredTextBoxExtender ID="fte_rate"
				runat="server"
				TargetControlID="txt_rate"
				FilterType="Custom, Numbers"
				ValidChars=".">
			</act:FilteredTextBoxExtender>
			<act:FilteredTextBoxExtender ID="fte_running_time"
				runat="server"
				TargetControlID="txt_running_time"
				FilterType="Numbers">
			</act:FilteredTextBoxExtender>
			<act:FilteredTextBoxExtender ID="fte_file_size"
				runat="server"
				TargetControlID="txt_file_size"
				FilterType="Custom, Numbers"
				ValidChars=",">
			</act:FilteredTextBoxExtender>
			<!-- FilteredTextBoxExtender 끝 -->
			<!-- 자동완성 시작 -->
			<act:AutoCompleteExtender ID="ace_search_actress1"
				runat="server"
				BehaviorID="bid_search_actress1"
				TargetControlID="txt_search_actress1"
				ServiceMethod="GetSearchData"
				ServicePath="../Common/Inc/AutoCompleteWebService.asmx"
				MinimumPrefixLength="1"
				CompletionSetCount="20"
				CompletionInterval="800"
				EnableCaching="true"
				UseContextKey="true"
				ContextKey="Dvd1012m" 
				CompletionListCssClass="ace_List"
				CompletionListItemCssClass="ace_ListItem"
				CompletionListHighlightedItemCssClass="ace_HighlightedItem" >					
			</act:AutoCompleteExtender>
			<act:AutoCompleteExtender ID="ace_actress1"
				runat="server"
				TargetControlID="txt_actress1"
				ServiceMethod="GetSearchData"
				ServicePath="../Common/Inc/AutoCompleteWebService.asmx"
				MinimumPrefixLength="1"
				CompletionSetCount="20"
				CompletionInterval="800"
				EnableCaching="true"
				UseContextKey="true"
				ContextKey="Dvd1012m"
				CompletionListCssClass="ace_List"
				CompletionListItemCssClass="ace_ListItem"
				CompletionListHighlightedItemCssClass="ace_HighlightedItem" >
			</act:AutoCompleteExtender>
			<!-- 자동완성 끝 -->
			<!--슬라이더-->
			<act:SliderExtender ID="se_rate" runat="server"
				TargetControlID="txt_rate_slider"
				BoundControlID="txt_rate"
				BehaviorID="RateSlider"
				EnableHandleAnimation="true"
				TooltipText="{0}"
				Decimals="1"
				Minimum="0.0"
				Maximum="9.9" />
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//저장
	function chkSave() {
		if ($F("txt_dvd_no").blank()) {
			msgBox.alert(getMsg(MSG_ERR_046), setFocus, "txt_dvd_no"); //DVD 번호를 입력해 주세요
			return false;
		}
		if ($F("txt_title").blank()) {
			msgBox.alert(getMsg(MSG_ERR_047), setFocus, "txt_title"); //DVD 제목을 입력해 주세요
			return false;
		}
		
		var lb_checked_contents = false;
		var lb_checked_look = false;
		var lb_checked_costume = false;
		var lb_checked_character = false;
		
		//체크박스 갯수
		var cb_cnt_contents = getCheckBoxCntOnTable("cbl_contents");
		var cb_cnt_look = getCheckBoxCntOnTable("cbl_look");
		var cb_cnt_costume = getCheckBoxCntOnTable("cbl_costume");
		var cb_cnt_character = getCheckBoxCntOnTable("cbl_character");
		
				
		//내용
		for (var i=0; i<cb_cnt_contents; i++) {
			var cb = $("cbl_contents_"+i);
			if (cb.checked) {
				lb_checked_contents = true;
			}
		}
		
		//외모
		for (var i=0; i<cb_cnt_look; i++) {
			var cb = $("cbl_look_"+i);
			if (cb.checked) {
				lb_checked_look = true;
			}
		}
		
		//복장
		for (var i=0; i<cb_cnt_costume; i++) {
			var cb = $("cbl_costume_"+i);
			if (cb.checked) {
				lb_checked_costume = true;
			}
		}
		
		//특징
		for (var i=0; i<cb_cnt_character; i++) {
			var cb = $("cbl_character_"+i);
			if (cb.checked) {
				lb_checked_character = true;
			}
		}
		
		if (!lb_checked_contents){
			msgBox.alert(getMsg(MSG_ERR_136)); //하나이상의 내용을 선택하세요
			return false;
		}
		
		if (!lb_checked_look){
			msgBox.alert(getMsg(MSG_ERR_137)); //하나이상의 외모를 선택하세요
			return false;
		}
		
		if (!lb_checked_costume){
			msgBox.alert(getMsg(MSG_ERR_138)); //하나이상의 복장을 선택하세요
			return false;
		}
		
		if (!lb_checked_character){
			msgBox.alert(getMsg(MSG_ERR_139)); //하나이상의 특징을 선택하세요
			return false;
		}

		var pk = $get("lbl_pk").innerHTML;
		var MSG_ID = (pk == "") ? MSG_CFM_000 : MSG_CFM_028; //저장/수정
		msgBox.confirm(getMsg(MSG_ID), doSave); //저장하시겠습니까?

		return false;
	}
	
	

	//삭제
	function chkDelete() {
		if(!isCheckedOnGridView("GridView1", 0)) {
			msgBox.alert(getMsg(MSG_ERR_053));	//삭제할 항목을 선택하세요
			return false;
		}
		msgBox.confirm(getMsg(MSG_CFM_001), doDelete);	//삭제하시겠습니까?
		return false;
	}
	
	//첨부파일1 삭제
	function chkDeleteAttachFile1(){
		msgBox.confirm(getMsg(MSG_CFM_006), doDeleteAttachFile1);	//파일을 삭제하시겠습니까?
		return false;
	}

	//리스트 선택시 슬라이드값 설정
	function setSliderValue(v) {
		var sliderbehaviour = $find("RateSlider");
		if (sliderbehaviour != null) {
			sliderbehaviour.set_Value(v);
		}
	}

</script>
</body>
</html>